package com.press.services;

import com.press.bean.ContentBean;
import com.press.bean.TaxonomyBean;
import com.press.mapper.UtilMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by haocongshun on 2016/10/21.
 */
@Service("utilService")
public class UtilService {
    @Resource(name = "utilMapper")
    private UtilMapper utilMapper;

    public UtilMapper getUtilMapper() {
        return utilMapper;
    }

    public void setUtilMapper(UtilMapper utilMapper) {
        this.utilMapper = utilMapper;
    }

    public List<ContentBean> getContentsTop10(){
        return utilMapper.getContentsTop10();
    }
    public List<ContentBean> getContentsRecommend(){
        return utilMapper.getContentsRecommend();
    }
    public List<TaxonomyBean> getMenus(){
        return utilMapper.getMenus();
    }
}
